import { ActiveBaseIcon } from "../activity/icon/ActiveBaseIcon";
import { ParamsConst } from "../../../common/global/ParamsConst";
import { ProxyType } from "../../../common/global/ProxyType";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
//class PhoneGiftIcon
    
    export  class PhoneGiftIcon extends ActiveBaseIcon
    {
        constructor(arg1: string=null)
        {
            super(arg1);
            return;
        }

        protected /* override */ onMouseClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (ParamsConst.instance.proxyType != ProxyType.P360) 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.PhoneGiftWindowOpen));
            }
            else 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.MobileBindOpen));
            }
            return;
        }
    }
